Objects Reference

mesh::get_edge

Prototype

int get_edge(int v1,int v2)

Parameters

Parameter Type Description
v1 int first vertex defining the edge
v2 int second vertex defining the edge

Return Value

Retuns the index into the edges array for the specified edge (v1,v2) or -1 if edge is not in edges list.

Remarks

This function is used for finding the index into the edges array for a specified edge difined by a pair of vertices (v1,v2). The order of the pair is not inportant as edge (v1,v2) is the same as edge (v2,v1).